

<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>我的大麦-账号设置</title>
    <script type="text/javascript" th:src="@{/js/jquery-2.1.4.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/bootstrap-3.3.7-dist/js/bootstrap.js}"></script>
    <link type="text/css"  rel="stylesheet" th:href="@{/js/bootstrap-3.3.7-dist/css/bootstrap.min.css}">
    <script type="text/javascript" th:src="@{/js/bootstrap-treeview/bootstrap-treeview.min.js}"></script>
    <link type="text/css"  rel="stylesheet" th:href="@{/js/bootstrap-treeview/bootstrap-treeview.min.css}">
    <script type="text/javascript" th:src="@{/js/bootStrap-addTabs/bootstrap.addtabs.min.js}"></script>
    <link type="text/css"  rel="stylesheet" th:href="@{/js/bootStrap-addTabs/bootstrap.addtabs.css}">
    <script type="text/javascript" th:src="@{/js/bootstrap-table/bootstrap-table.js}"></script>
    <link type="text/css"  rel="stylesheet" th:href="@{/js/bootstrap-table/bootstrap-table.css}">
    <script type="text/javascript" th:src="@{/js/bootstrap-fileinput/js/fileinput.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/bootstrap-bootbox/bootbox.js}"></script>
    <script type="text/javascript" th:src="@{/js/bootstrap-fileinput/js/locales/zh.js}"></script>
    <link type="text/css"  rel="stylesheet" th:href="@{/js/bootstrap-fileinput/css/fileinput.min.css}">


    <link rel="stylesheet" href="/lgfofjs/css/ui-min.css" th:href="@{/lgfofjs/css/ui-min.css}" />
    <link rel="shortcut icon" type="image/x-icon" href="https://passport.damai.cn/images/favicon.ico" />
    <script type="text/javascript" src="/lgfofjs/js/jquery-1.7.2.min.js" th:src="@{/lgfofjs/js/jquery-1.7.2.min.js}"></script>
    <script type="text/javascript" src="/lgfofjs/js/ui-min.js" th:src="@{/lgfofjs/js/ui-min.js}"></script>
    <script src="/lgfofjs/js/base.js" th:src="@{/lgfofjs/js/base.js}" type="text/javascript"></script>

    <link rel="stylesheet" type="text/css" href="/lgfofjs/css/style.css" th:href="@{/lgfofjs/css/style.css}">
    <script type="text/javascript">
        var currNavName = "AccountSafty";
    </script>

    <link rel="stylesheet" href="/lgfofjs/css/3f934410130a468e96c16b7db1869869.css" th:href="@{/lgfofjs/css/3f934410130a468e96c16b7db1869869.css}"/>
</head>

<body><script>
    with(document)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("exparams","category=&userid=&aplus&yunid=&ee164ed97f6ee&trid=212bf86416316097431254147e3c9b&asid=AQAAAACPY0BhguJrHwAAAADMufHnlDCDzw==",id="tb-beacon-aplus",src=(location>"https"?"//g":"//g")+".alicdn.com/alilog/mlog/aplus_v2.js")
</script>

<!--top header-->
<!--top start-->

<!--top end-->

<!--header start-->


<!--ems start-->


<style>
    .sidebar .item:nth-last-child(2){
        /*display: none;*/
    }
    .dm-header-banner {
        width: 100%;
        height: 60px;
        background-repeat: no-repeat;
        background-size: cover;
/*
        background-image: url('lgfofjs/images/o1cn01uf9thn1de7txdinpy_!!6000000003760-2-tps-2880-120.png');
*/
    }
</style>
<!--<div class="dm-header-banner"></div>-->
<div class="dm-header-wrap">
    <div class="dm-header-box" data-spm="top">
        <a href="/home"><img class="i-logo" src="/wl/picture/tb1fbvffu3thkvjszsgxxx4qfxa-230-104.png" alt="大麦" /></a>
        <div class="location-header">
            <img class="i-icon-location" src="lgfofjs/picture/tb1xhduxngybunjy0fnxxx5lpxa-28-32.png" alt="定位" />
            <span class="city-location">全国</span>
            <img class="i-arrow-location" src="lgfofjs/picture/tb1vnubxstybenjsspaxxaoofxa-20-12.png" alt="箭头" />
            <div class="city-header-wrap">
                <div class="city-header" data-spm="city">
                    <div class="now-city">
                        <span class="title-city">当前城市:</span>
                        <span class="name-city select-city">全国</span>
                    </div>
                    <div class="hot-city">
                        <span class="title-city">热门城市:</span>
                        <div class="list-other"></div>
                    </div>
                    <div class="other-city">
                        <span class="title-city">其他城市:</span>
                        <div class="list-other"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="recommend-header">
            <a href="/home" class="type-recommend select" data-spm="dhome">首页</a>
            <a href="/search" class="type-recommend" data-spm="dcategory">分类</a>


        </div>
        <div class="right-header" data-spm="nick">
            <div class="box-header user-header">
                <a href="javascript:void(0)" class="J_userinfo_img" data-spm="duserinfo"><img class="i-box-header i-user" src="lgfofjs/picture/tb14ukcgqywbunjy0fpxxassxxa-54-54.png" /></a>
                <!--<a href="//passport.damai.cn/accountinfo/myinfo" class="J_userinfo_name" data-spm="duserinfo">
                    <div class="span-box-header name-user"></div>
                </a>-->
                <div class="login-user show">
                    <span class="span-box-header span-user" data-spm="dlogin">登录</span>
                </div>
                <div class="list-wrap">
                    <div class="list-login">
                        <a href="/myselfInfo" class="li-login select" data-spm="duserinfo">个人信息</a>
                        <a href="/lgf2" class="li-login" data-spm="daccountsetting">账号设置</a>
                        <a href="/orderList" class="li-login" data-spm="dordermanage">订单管理</a>
                        <a href="javascript:logout()" data-spm="dexit" class="li-login out-login">退出登录</a>
                    </div>
                </div>
            </div>
            <div class="box-header download-header">
                <img class="i-box-header i-download" src="/picture/tb1a9eigkusbunjy1xcxxcyjfxa-54-54.png" alt="下载" />
                <span class="span-box-header">下载</span>
                <div class="ewm-download">
                    <img class="i-ewm" src="wl/picture/TB1TBEJSkvoK1RjSZFNXXcxMVXa-280-280.png" />
                </div>
            </div>
        </div>
        <div class="search-header" data-spm="searchtxt">
            <img class="i-search" src="lgfofjs/picture/tb1qv3jxgmwbunjy1xaxxxcbxxa-34-36.png" alt="搜索" />
            <input class="input-search" placeholder="搜索明星、演出、体育赛事" data-spm="dsearchbtn" id="input-search"/>
            <div class="btn-search" data-spm="dsearchbtn2" onclick="searchGoods()">搜索</div>
            <div class="list-search-wrap">
                <div class="list-search">
                </div>
            </div>
        </div>

    </div>
</div>
<!--ems end-->

<!--header end-->

<!--主导航 start-->

<!--主导航 end-->
<div class="red-line"></div>
<!--main-->
<div class="main">
    <!--left of start-->
    <div class="sidenav">
        <div id="mydamai">
            <h3>我的大麦</h3>
            <dl>
                <dt>交易中心</dt>
                <dd><a id="nav_Order" href="http://127.0.0.1:7001/orderList" title="订单管理"  domain=""><span >订单管理</span></a></dd>

                <dd><a id="nav_myCoupon" href="http://127.0.0.1:7001/couponList?spm=a2oeg.orderlist.0.0.53031ae6V0nRnK" title="我的优惠券"  domain=""><span >我的优惠券</span></a></dd>



                <dl>
                    <!--
                    <dt>互动中心</dt>
                        <dd><a id="nav_MessCenter" href="http://my.damai.cn/interaction/siteMessage" title="站内消息"  domain=""><span >站内消息</span></a></dd>
                        <dd><a id="nav_MyComment" href="http://my.damai.cn/interaction/myComment" title="我的评论"  domain=""><span >我的评论</span></a></dd>
                        <dd><a id="nav_MyQuestion" href="http://my.damai.cn/interaction/myQuestion" title="我的提问"  domain=""><span >我的提问</span></a></dd></dl>
                    <dl>
                    -->
                    <dt>账户中心</dt>
                    <dd><a id="nav_MyAddress" href="http://127.0.0.1:7001/buy" title="收货地址"  domain=""><span >收货地址</span></a></dd>
                    <dd><a id="nav_AccountSafty" href="http://127.0.0.1:7001/lgf2" title="账号设置"  domain=""><span >账号设置</span></a></dd>

                    <dd><a id="nav_MyInfo1" href="http://127.0.0.1:7001/myselfInfo" title="个人信息"  domain=""><span >个人信息</span></a></dd>

<!--
                    <dd><a id="nav_MyInfo" href="https://passport.damai.cn/customerManage/customerManageIndex" title="常用购票人"  domain=""><span >常用购票人</span></a></dd>
-->
                </dl>

                <script type='text/javascript'>
                    (function(){
                        document.getElementById('mydamai').style.display='none';
                        var object=document.getElementById('nav_'+currNavName);
                        if(object) object.className+=' on';
                        document.getElementById('mydamai').style.display='';
                    })();
                </script>
            </dl>

        </div>
    </div>

    <!--left of end-->
    <!--right of start-->
    <div class="right-main">
        <div class="breadcrumb">
            <span>账号设置</span></div>
        <div class="tab-mydamai">
            <ul class="title">
                <li>
                    <a id="accountSetting" class="on" href="javascript:void(0)">账号设置</a>
                </li>
            </ul>
            <!--默认页面-->
            <div class="msg-safety" style="display:none;">

            </div>
            <div class="info-safety">
                <ul>
                    <li class="suc-title">密码</li>
                    <li class="infos-con"><span></span></li>
                    <li class="right">
                        <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
                            修改
                        </button>
                    </li>
                </ul>
            </div>

            <div class="info-safety">
                <ul>
                    <li class="spc-title" id="email">邮箱</li>
                    <li class="infos-con lh">
                        <span>邮箱可帮助您快速找回密码，并可接收订单、演出通知、促销活动等提醒</span>
                    </li>
                    <li class="right">
                        <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModayou">
                            修改邮箱
                        </button>
                    </li>
                </ul>
            </div>

            <div class="info-safety">
                <ul><!--suc-title-->
                    <li class="spc-title" id="ll">手机验证</li>
                    <li class="infos-con"><span id="phone"></span></li>
                    <li class="right">
                        <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModaltwo">
                            更换
                        </button>
                    </li>
                </ul>
            </div>
            <div class="info-safety">
                <ul>
                    <li class="spc-title" id="username">实名</li>
                    <li class="infos-con">
                        <span>认证您的实名信息，提高安全等级</span>
                    </li>
                    <li class="right">
                        <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModalName">
                            验证
                        </button>
                    </li>
                </ul>
            </div>
        </div>
        <div id="notify-window" style="display:none">
            <!--透明遮罩层-->
            <div class="mask-layer"></div>
            <!--弹出层-->
            <div class="dm-layer-box" style="width:376px;margin-left:-188px;top:50%; margin-top:-100px;">
                <div class="dm-layer">
                    <div class="hd">
                        <h3>提示</h3>
                        <a href="#" class="close" onclick="confirm_quit()"></a>
                    </div>
                    <div class="c-n">
                        <p id="notify-msg" class="t-c"></p>
                        <div class="dm-layer-btn"><button class="btn04" onclick="confirm_yes()" id="confirmBtn"></button>
                            &nbsp;&nbsp;
                            <button class="btn04" onclick="confirm_quit()">取&nbsp;&nbsp;消</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <script type="text/javascript">
            var confirmCallBack;
            function confirm_quit()
            {
                $("#notify-msg").empty();
                $("#notify-window").attr("style","display:none");
                confirmCallBack=null;
            }

            function confirm_show(msg,func,label)
            {
                confirmCallBack=null;
                var confirmLabel="确&nbsp;&nbsp;认";
                if(label!=null&&label!=undefined&&label!=""){
                    confirmLabel=label;
                }
                $("#confirmBtn").empty();
                $("#notify-msg").empty();
                $("#notify-msg").append(msg);
                $("#confirmBtn").append(confirmLabel);
                $("#notify-window").attr("style","display:show");
                confirmCallBack=func;
            }

            function confirm_yes(){
                if(confirmCallBack!=null){
                    confirmCallBack();
                }

            }

        </script>

        <script src="/lgfofjs/js/accountsetting.js" type="text/javascript" th:src="@{/lgfofjs/js/accountsetting.js}"></script>

    </div>
    <!--right of end-->

    <!-- <link type="text/css"  rel="stylesheet" th:href="@{/js/bootstrap-3.3.7-dist/css/bootstrap.min.css}">
       <script type="text/javascript" th:src="@{/js/bootstrap-treeview/bootstrap-treeview.min.js}"></script>-->

    <script type="text/javascript" src="/lgfofjs/js/seoflowstatistics.js" th:src="@{/lgfofjs/js/seoflowstatistics.js}"></script>

    <script>
        if(typeof JsLoader === 'undefined') {window.JsLoader = {load:function(){},before:function(){},complete:function(){},completeAfter:function(){}};}
    </script>
    <script src="/lgfofjs/js/dui-min.js" type="text/javascript" th:src="@{/lgfofjs/js/dui-min.js}"></script>
    <script src="/lgfofjs/js/app-min.js" type="text/javascript" th:src="@{/lgfofjs/js/app-min.js}"></script>
</div>
<!--返回顶部及帮助中心-->
<div class="new-fast">
    <a onclick="jvascript:$('body,html').animate({ scrollTop: 0 }, 500);" class="fast-top" href="#">返回顶部</a>
    <a class="fast-help" href="//www.damai.cn/helpcollect.html#selfservice" target="_blank">帮助中心</a>
</div>

<!-- 成功提示层 begin -->
<div class="tips-y-b">
    <div class="tips-y-b-con"><p></p></div>
</div>
<div class="tips-f-b">
    <div class="tips-f-b-con"><p></p></div>
</div>

<!-- 成功提示层 start -->

<!--ems start-->


<div class="dm-footer">
    <div class="w1200">
        <ul class="footer__links">

            <li class="footer__links__list"><a href="//help.damai.cn" target="_blank" data-spm="flink0">帮助中心</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=69&amp;categoryId=30" target="_blank" data-spm="flink1">公司介绍</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=70&amp;categoryId=30" target="_blank" data-spm="flink2">品牌识别</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=72&amp;categoryId=30" target="_blank" data-spm="flink3">公司大事记</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=40&amp;categoryId=14" target="_blank" data-spm="flink4">协议及隐私权政策</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;jubao.alibaba.com&#x2F;internet&#x2F;readme.htm?spm=a2o6e.search.0.0.72f44d15Votov6&amp;site=damai" target="_blank" data-spm="flink5">廉正举报</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;help.damai.cn&#x2F;helpPage.htm?pageId=58&amp;categoryId=5" target="_blank" data-spm="flink6">联系合作</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;job.alibaba.com&#x2F;zhaopin&#x2F;positionList.htm?keyWord=JXU1OTI3JXU5RUE2&amp;_input_charset=UTF-8" target="_blank" data-spm="flink7">招聘信息</a></li>
            <li class="footer__links__grep">|</li>

            <li class="footer__links__list"><a href="&#x2F;&#x2F;x.damai.cn&#x2F;markets&#x2F;special&#x2F;fangzhapian?spm=a2o6e.home.0.0.75df48d3hqGWGD&amp;wh_ttid=pc" target="_blank" data-spm="flink8">防骗秘籍</a></li>


        </ul>
        <div class="footer__ft">
            <div class="footer__ft_fl">
                <a href="//www.damai.cn/?spm=a2o6e.home.0.0.591b48d3QzpG8B" target="_blank" class="footer__ft__logo">
                    <img src="/lgfofjs/picture/tb1otmasmzqk1rjszpxxxc4tvxa-167-60.png" />
                </a>
                <div class="footer__ft__code__box">
                    <img class="footer__ft__code" src="/wl/picture/TB1TBEJSkvoK1RjSZFNXXcxMVXa-280-280.png" alt="">
                    <span>APP下载</span>
                </div>
            </div>
            <div class="footer__ft_fr">
                <div class="footer__fr__contact">

                    <a style="margin-left:0;" href="//online.damai.cn/alime/index?from=damai_pc_item&v=3" class="footer__fr__contact__btn alime">在线客服</a>
                </div>
                <ul class="footer__ft__words">
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i2/O1CN01J1OnUU1g76CE6kSh6_!!6000000004094-0-tps-2480-3507.jpg" target="_blank">京ICP证031057号</a></li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="https://beian.miit.gov.cn/#/Integrated/recordQuery" target="_blank">京ICP备11043884号</a></li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a
                            href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010502037341" target="_blank">京公网安备11010502037341号</a>
                    </li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i2/O1CN0154oubE1iLsBEGmx9V_!!6000000004397-2-tps-1694-1138.png" target="_blank">广播电视节目制作经营许可证(京)字第02253号</a></li>
                </ul>
                <ul class="footer__ft__words">
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i2/O1CN01tlZwxM1LiYeoBTfIB_!!6000000001333-0-tps-2480-3507.jpg" target="_blank">网络文化经营许可证 京网文[2019]4082-420号</a></li>
                    <li class="footer__ft__grep">|</li>
                    <li class="footer__ft__certificate"><a href="https://gw.alicdn.com/imgextra/i1/O1CN01V4XPXw1TNxm6UL9RO_!!6000000002371-0-tps-1653-2339.jpg" target="_blank">营业性演出许可证京市演587号</a></li>
                </ul>
                <ul class="footer__ft__words">
                    <li class="footer__ft__certificate">北京大麦文化传媒发展有限公司 版权所有</li>
                    <li class="footer__ft__certificate"><a
                            href="//www.damai.cn/?spm=a2o6e.home.0.0.591b48d3QzpG8B">大麦网</a></li>
                    <li>Copyright 2003-2020 All Rights Reserved</li>
                </ul>
                <ul class="footer__ft__words">
                    <li>举报投诉：damai_tousu@member.alibaba.com   浙江省杭州市余杭区文一西路969号</li>
                </ul>
                <ul class="footer__ft__words">
                    <li>违法不良信息举报电话：020-62108294</li>
                </ul>
                <div class="footer__ft__img">

                    <a rel="nofollow" title="电子营业执照" target="_blank"
                       href="https://gw.alicdn.com/tfs/TB1U0tdqmR26e4jSZFEXXbwuXXa-844-587.png">
                        <img class="footer__ft__img2" alt="" src="lgfofjs/picture/tb1zo80pyoybunjssd4xxbskfxa-141-41.png">
                    </a>

                    <a rel="nofollow" target="_blank" href="https://www.pcisecuritystandards.org/">
                        <img src="lgfofjs/picture/tb1y580pyoybunjssd4xxbskfxa-83-50.png" class="footer__ft__img3">
                    </a>
                    <a target="_blank" href="https://search.szfw.org/cert/l/CX20130327002367002885"
                       id="___szfw_logo___">
                        <img class="footer__ft__img4" src="lgfofjs/picture/tb1c4nnxtlybenjsszcxxbwhfxa-114-42.png">
                    </a>
                    <script type="text/javascript">(function () {
                        document.getElementById('___szfw_logo___').oncontextmenu = function () {
                            return false;
                        }
                    })();</script>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    .sidebar{top: 72.5%;}
    .sidebar .item .icon {
        background-image: url(static/lgfofjs/images/tb1u1u9xmzqk1rjszfhxxb3cpxa-64-180.png);
    }
    img{border: 0;}
    .sidebar .item .qrcode{
        background: #fff url('static/lgfofjs/images/tb1tbejskvok1rjszfnxxcxmvxa-280-280.jpg') no-repeat center center;
        background-size: 90%;
    }
    .sidebar .item .qrcode img{display:none;}
</style>
<script type="text/javascript" src="/lgfofjs/js/2e288a8edc7f40a5a1b5d94efd1a2e16.js" th:src="@{/lgfofjs/js/2e288a8edc7f40a5a1b5d94efd1a2e16.js}" crossorigin></script>
<script type="text/javascript">

    var tracker = new window.Tracker({
        pid: 'damaipc',
        plugins: [
            [window.interfaceTrackerPlugin],
            [window.performanceTrackerPlugin]
        ],
    });

    // 启动 tracker 并监听全局 JS 异常
    tracker.install();

    (function(){var f=function(){};if(!window.console){window.console={log:f,info:f,warn:f,debug:f,error:f}}}());
</script>
<!--script src="//g.alicdn.com/sd/baxia/1.0.11/baxiaCommon.js"></script-->

<script src="/lgfofjs/js/mtop.js" th:src="@{/lgfofjs/js/mtop.js}"></script>
<script data-config="{combine:true}" src="/lgfofjs/js/seed.js" th:src="@{/lgfofjs/js/mtop.js}"></script>
<script src="/lgfofjs/js/index.js" th:src="@{/lgfofjs/js/mtop.js}"></script>
<!--ems end-->



<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    修改密码
                </h4>
            </div>
            <div class="modal-body">
                <form method="post" class="form-horizontal" role="form" id="myForm">
                    <div class="form-group">
                        <div class="col-sm-10">
                            请输入新密码：<input type="text" class="form-control"   width="100px" id="wo2"><!--id="userPwd"-->
                            <input type="hidden" id="userid"  name="userId">
                            <br>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitForm()">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>



<div class="modal fade" id="myModaltwo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabeltwo">
                    修改电话号
                </h4>
            </div>
            <div class="modal-body">
                <form method="post" class="form-horizontal" role="form" id="myFormtwo">
                    <div class="form-group">
                        <div class="col-sm-10">
                            电话：<input type="text" id="useriPhone" class="form-control"  width="100px">
                            <br>
                            <input type="hidden" id="useridtwo"  name="userId">
                             修改：<input name="useriPhone" class="form-control"  id="wo" width="100px" >
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitFormtwo()">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<div class="modal fade" id="myModalName" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModaluserName">
                    实名认证
                </h4>
            </div>
            <div class="modal-body">
                <form method="post" class="form-horizontal" role="form" id="myFormName">
                    <div class="form-group">
                        <div class="col-sm-10">
                            身份证 ：<input type="text" class="form-control" id="userCard" name="userCard" width="100px">
                            <input type="hidden" id="userfour"  name="userId">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="adddcard()">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<div class="modal fade" id="myModayou" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalyou">
                    修改邮箱
                </h4>
            </div>
            <div class="modal-body">
                <form method="post" class="form-horizontal" role="form" id="myFormyou">
                    <div class="form-group">
                        <div class="col-sm-10">
                            邮箱：<input type="text" class="form-control"id="userEmail"  width="100px">
                            <input type="hidden" id="userIdthree"  name="userId">
                            <br>
                            新邮箱：<input name="userEmail" class="form-control" id="wo3" width="100px" >
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="addyou()">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>




</body>
<script>
    $(function () {
        ooo();
    })

    function ooo() {
        //alert(111);
        $.ajax({
            url: "/phone/findPhone",
            data: {userId: 1},
            success: function (data) {
                var phone= data.useriPhone;
                phone= "" + phone;
                var ary = phone.split("");
                ary.splice(3,4,"****");
                var phone=ary.join("");

                if (data.userEmail!=""){
                    $("#email").removeClass("spc-title")
                    $("#email").addClass("suc-title")
                    //location.reload();
                }else{
                    $("#email").removeClass("suc-title")
                    $("#email").addClass("spc-title")
                }
                if (data.userCard!=null || data.userCard!=""){
                    $("#username").removeClass("spc-title")
                    $("#username").addClass("suc-title")
                    //location.reload();
                }else{
                    $("#username").removeClass("suc-title")
                    $("#username").addClass("spc-title")
                }



                $("#userid").val(data.userId);
                $("#phone").html(phone);
                $("#useridtwo").val(data.userId);
                $("#useriPhone").val(data.useriPhone);
                $("#userIdthree").val(data.userId);
                $("#userfour").val(data.userId)

                $("#userEmail").val(data.userEmail);
                $("#userPwd").val(data.userPwd)
                $("#userCard").val(data.userCard);

                $("#ll").removeClass("suc-title");


            }
        })
    }

    //修改密码
    function submitForm(){
        $.ajax({
            url:"/phone/update",
            data:$("#myForm").serialize(),
            success:function(){
                alert("修改成功");
                $("#wo2").val("")
                ooo();

            }
        })
    }

    /*function updatetwo() {
        $("#myModaltwo").modal("show");
    }
*/

    function submitFormtwo(){
        $.ajax({
            url:"/phone/updatePhone",
            data:$("#myFormtwo").serialize(),
            success:function(data){
                alert("修改成功");
                $("#wo").val("")
                ooo();

            }
        })
    }



    function upyou(){
        $("#myModayou").modal("show");
    }
    function addyou(){
        $.ajax({
            url:"../phone/addyou",
            data:$("#myFormyou").serialize(),
            success:function(){
                alert("修改邮箱成功");
                $("#wo3").val("")
                ooo();
            }
        })

    }

    function findName(){
        $("#myModalName").modal("show");
    }

    var aaa=  document.getElementById("userCard").value
    if (aaa==null|| aaa==""){
        function adddcard(){
            $.ajax({
                url:"../phone/adddcard",
                data:$("#myFormName").serialize(),
                success:function(data){
                    if (data.code==200){
                        alert("修改邮箱成功");
                        ooo();
                    }else if (data.code==201) {
                        alert("已认证")
                        ooo();
                    }

                }
            })
        }
    }/*else {
        alert("已认证11111")
    }*/




    //给登录添加on属性
    $(".user-header").on("mouseover",
        function (){
            $(".user-header").addClass("on");
        })
    $(".user-header").on("mouseout",
        function (){
            $(".user-header").removeClass("on");
        })
    //给下载添加on属性
    $(".download-header").on("mouseover",
        function (){
            $(".download-header").addClass("on");
        })
    $(".download-header").on("mouseout",
        function (){
            $(".download-header").removeClass("on");
        })
    //登录后显示登录信息
    $.ajax({
        url:"/home/getLoginInfo",
        success:function(data){
            if(data.loginInfo==300){
                $(".name-user").removeClass("show");
                $(".login-user").addClass("show");
                $(".out-login").removeClass("show");
            }else{
                $(".i-user").prop("src",data.loginInfo.userImg);
                $(".name-user").html(data.loginInfo.userName);
                $(".name-user").addClass("show");
                $(".login-user").removeClass("show");
                $(".out-login").addClass("show");
            }
        }
    })
    //跳转登录
    function loginUser(){
        location.href="/login";
    }
    //登录要修改js文件 span-user 的location.href

    //退出登录
    function logout(){
        $.ajax({
            url:"/home/logout",
            success:function(){
                //刷新页面
                location.reload();
            }
        })
    }
    //搜索
    function searchGoods(){
        var searchGoods = $("#input-search").val();
        location.href="/homeJump/toSearch?searchGoods="+searchGoods;
    }
</script>



</html>